def findRepeatedDnaSequences(s):
    """
    :type s: str
    :rtype: List[str]
    """
    result = []
    judge_str = s[0:10]
    for i in range(1, len(s) - 9):
        if judge_str in s[i:] and judge_str not in result:
            result.append(judge_str)
        else:
            judge_str = s[i:i + 10]
    return result

if __name__ == "__main__":
    s = "GAGAGAGAGAGAG"
    print(findRepeatedDnaSequences(s))